.class public Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
.super Ljava/lang/Object;
.source "CustomAlertDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/zuimeia/sdk/download/view/CustomAlertDialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "AlertBuilder"
.end annotation


# instance fields
.field private context:Landroid/content/Context;

.field private detailTxt:Ljava/lang/String;

.field private myAlertDialog:Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

.field private negativeListener:Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

.field private negativeStr:Ljava/lang/String;

.field private onCancelListener:Landroid/content/DialogInterface$OnCancelListener;

.field private onDismissListener:Landroid/content/DialogInterface$OnDismissListener;

.field private onKeyListener:Landroid/content/DialogInterface$OnKeyListener;

.field private positiveListener:Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

.field private positiveStr:Ljava/lang/String;

.field private titleTxt:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 2
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 91
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 92
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->context:Landroid/content/Context;

    .line 93
    return-void
.end method


# virtual methods
.method public create()Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 3

    .prologue
    .line 133
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->myAlertDialog:Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

    if-nez v0, :cond_d

    .line 134
    new-instance v0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

    iget-object v1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->myAlertDialog:Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

    .line 136
    :cond_d
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onCancelListener:Landroid/content/DialogInterface$OnCancelListener;

    if-eqz v0, :cond_18

    .line 137
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->myAlertDialog:Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

    iget-object v1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onCancelListener:Landroid/content/DialogInterface$OnCancelListener;

    invoke-virtual {v0, v1}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 139
    :cond_18
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onDismissListener:Landroid/content/DialogInterface$OnDismissListener;

    if-eqz v0, :cond_23

    .line 140
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->myAlertDialog:Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

    iget-object v1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onDismissListener:Landroid/content/DialogInterface$OnDismissListener;

    invoke-virtual {v0, v1}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 142
    :cond_23
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    if-eqz v0, :cond_2e

    .line 143
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->myAlertDialog:Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

    iget-object v1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    invoke-virtual {v0, v1}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 145
    :cond_2e
    return-object p0
.end method

.method public setMessage(Ljava/lang/String;)Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 2
    .param p1, "detailTxt"    # Ljava/lang/String;

    .prologue
    .line 101
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->detailTxt:Ljava/lang/String;

    .line 102
    return-object p0
.end method

.method public setNegativeButton(Ljava/lang/String;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;)Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 3
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "listener"    # Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

    .prologue
    .line 106
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->negativeStr:Ljava/lang/String;

    .line 107
    iput-object p2, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->negativeListener:Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

    .line 108
    return-object p0
.end method

.method public setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 2
    .param p1, "onCancelListener"    # Landroid/content/DialogInterface$OnCancelListener;

    .prologue
    .line 118
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onCancelListener:Landroid/content/DialogInterface$OnCancelListener;

    .line 119
    return-object p0
.end method

.method public setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 2
    .param p1, "onDismissListener"    # Landroid/content/DialogInterface$OnDismissListener;

    .prologue
    .line 123
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onDismissListener:Landroid/content/DialogInterface$OnDismissListener;

    .line 124
    return-object p0
.end method

.method public setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 2
    .param p1, "onKeyListener"    # Landroid/content/DialogInterface$OnKeyListener;

    .prologue
    .line 128
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->onKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    .line 129
    return-object p0
.end method

.method public setPositiveButton(Ljava/lang/String;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;)Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 3
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "listener"    # Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

    .prologue
    .line 112
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->positiveStr:Ljava/lang/String;

    .line 113
    iput-object p2, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->positiveListener:Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

    .line 114
    return-object p0
.end method

.method public setTitle(Ljava/lang/String;)Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    .registers 2
    .param p1, "titleTxt"    # Ljava/lang/String;

    .prologue
    .line 96
    iput-object p1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->titleTxt:Ljava/lang/String;

    .line 97
    return-object p0
.end method

.method public show()V
    .registers 8

    .prologue
    .line 149
    invoke-virtual {p0}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->create()Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;

    .line 150
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->myAlertDialog:Lcom/zuimeia/sdk/download/view/CustomAlertDialog;

    iget-object v1, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->titleTxt:Ljava/lang/String;

    iget-object v2, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->detailTxt:Ljava/lang/String;

    iget-object v3, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->negativeStr:Ljava/lang/String;

    iget-object v4, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->positiveStr:Ljava/lang/String;

    iget-object v5, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->negativeListener:Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

    iget-object v6, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;->positiveListener:Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

    invoke-virtual/range {v0 .. v6}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->showAlert(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;)V

    .line 151
    return-void
.end method
